<?php
/**
 * Created by PhpStorm.
 * User: DongYao
 * Date: 2017/12/23
 * Time: 下午2:20
 */

namespace App\Jobs;


use App\Support\Mqtt\Contracts\MqttJob;

class DeviceStart implements MqttJob
{
    public $order;

    public function __construct($order)
    {
        $this->order = $order;
    }

    /**
     * @return bool
     */
    public function handle()
    {

        $data = [
            'order_sn' => $this->order->order_sn,
            'device_sn' => $this->order->device_sn,
            'port' => $this->order->port,
            'user' => 'user'
        ];

        return $data;
    }
}